package com.lottery.material.enumeration.portaluser;

import com.lottery.material.enumeration.base.BaseEnum;
import lombok.Getter;

/**
 * Description：前端用户信息枚举类
 * Created by 朱正磊 on 2019-04-15 16:55
 */
@Getter
public enum PortalUserInfoEnum implements BaseEnum {

    // 用户类型（1：普通；2：认证；3：达人）
    USER_TYPE_ORDINARY("USER_TYPE", 1, "普通"),
    USER_TYPE_APPROVE("USER_TYPE", 2, "认证"),
    USER_TYPE_TALENT("USER_TYPE", 3, "达人"),

    // 昵称是否被修改过（1：未修改；2：修改过）
    IS_UPDATE_NICK_NAME_FALSE("IS_UPDATE_NICK_NAME", 1, "未修改"),
    IS_UPDATE_NICK_NAME_TRUE("IS_UPDATE_NICK_NAME", 2, "修改过"),

    // 注册方式（1：前台；2：后台）
    LOGON_MODE_PORTAL("LOGON_MODE", 1, "前台"),
    LOGON_MODE_ADMIN("LOGON_MODE", 2, "后台"),

    // 用户状态（1：启用；2：禁用；3：已删除）
    USER_STATUS_NORMAL("USER_STATUS", 1, "启用"),
    USER_STATUS_FORBIDDEN("USER_STATUS", 2, "禁用"),
    USER_STATUS_DELETED("USER_STATUS", 3, "已删除"),

    //是否推荐--被推荐的用户将在注册页面展示供注册用户选择关注（1：否；2：是）
    IS_RECOMMEND_FALSE("IS_RECOMMEND", 1, "否"),
    IS_RECOMMEND_TRUE("IS_RECOMMEND", 2, "是"),
    ;

    private String code;
    private Object value;
    private String description;

    PortalUserInfoEnum(String code, Object value, String description) {
        this.code = code;
        this.value = value;
        this.description = description;
    }

    public static final String USER_TYPE = "USER_TYPE";
    public static final String IS_UPDATE_NICK_NAME = "IS_UPDATE_NICK_NAME";
    public static final String LOGON_MODE = "LOGON_MODE";
    public static final String USER_STATUS = "USER_STATUS";
    public static final String IS_RECOMMEND = "IS_RECOMMEND";

}
